package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车俩表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_car")
@ApiModel(value = "车俩表")
public class Car extends Model<Car> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "车牌号")
    private String carNum;

    @ApiModelProperty(value = "购车时间")
    private Date buyTime;

    @ApiModelProperty(value = "车架号")
    private String vin;

    @ApiModelProperty(value = "发动机号")
    private String engineNumber;

    @ApiModelProperty(value = "车辆型号")
    private String carType;

    @ApiModelProperty(value = "出厂日期")
    private Date productionDate;

    @ApiModelProperty(value = "采购金额")
    private String buyMoney;

    @ApiModelProperty(value = "供应商id")
    private String supplierId;

    @ApiModelProperty(value = "年审时间")
    private Date yearCarefulTime;

    @ApiModelProperty(value = "提醒时间")
    private Date reminderTime;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "是否删除（1-已删除  2-未删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "使用部门id")
    private String departmentId;

    @ApiModelProperty(value = "使用人员id")
    private String userId;

    @ApiModelProperty(value = "维修(1-维修 2-正常)")
    private String maintain;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}